import React, { Component } from 'react'
import ContarllItem from "../cotrall/controllItem"
class Erzi extends Component {
    state = {
        val:""
    }
    componentDidMount(){
        console.log(this.props,444444)
    }
    setVal(e) {
        console.log(e.target.value)
        this.props.send(e.target.value)
    }
    render() {
        return (
            <div>
                <input type="text" defaultValue={this.state.val} onChange={this.setVal.bind(this)}/>
            </div>
        )
    }
}
// 函数科里话
export default ContarllItem({name1:"李四"})(Erzi)
